package org.phalanx.gwt.client.shared;

import java.util.HashMap;

public class OnLoadEvent {
	private HashMap<String,String> attributeTable;
	public static String CONTEXT = "context";

	public OnLoadEvent(String context){
		attributeTable = new HashMap<String, String>();
		setLoadContext(context);
	}
	
	public String getLoadContext(){
		return attributeTable.get(CONTEXT);
	}
	
	public void setLoadContext(String contextValue){
		attributeTable.put(CONTEXT, contextValue);
	}
	
	public void clearLoadEvent(){
		attributeTable.clear();
	}
	
	public void setAttribute(String attrName, String attrValue){
		attributeTable.put(attrName, attrValue);
	}
	
	public String getAttribute(String attrName){
		return attributeTable.get(attrName);
	}
}
